﻿#region Using declarations
using System;
using System.ComponentModel;
using System.Drawing;
using System.Globalization;
using NinjaTrader.Cbi;
using NinjaTrader.Data;
using NinjaTrader.Indicator;
using NinjaTrader.Strategy;
#endregion

// This namespace holds all strategies and is required. Do not change it.
namespace NinjaTrader.Strategy
{
    partial class Strategy
    {
        ///Returns the location of String2 within String1.
        ///Syntax: InStr(String1,String2);
        ///String1: Text string to be searched
        ///String2: Word or phrase to be found in String1
        ///Returns: Character position of the start of String2, if found. -1 if not found.

        public int InStr(String String1, String String2)
        {
            return String1.IndexOf(String2) + 1;
        }

    }
}
